"use client"
import { useEffect } from "react";
import { io, Socket } from 'socket.io-client';
let socket: Socket;
const Webrtc = () => {
  useEffect(() => {
    socket = io('https://lizhan.fun',{ path: "/perf/v1/socket.io" });
    socket.on('connect', () => {
      console.log('Connected to server');
    });
    console.log("webrtc");
  }, []);

  return (
    <div>
        webrtc
    </div>
  );
};
export default Webrtc;